package com.kabigon.tiny.dataSource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 动态数据源
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.tiny.dataSource
 * @data 2022/12/17 19:51
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceType.getDataBaseType();
    }
}
